package com.bigShen.pattern.observer.proxy;

/**
 * @author : lei.shen
 * @date : 2018/10/7
 */
public class ObserverProxyMainTest {

    public static void main(String[] args) {

        IMouseService mouseService = new MouseServiceImpl();

        IMouseService proxyElement = (IMouseService) new MouseServiceProxy(mouseService).getInstance();

        proxyElement.click();

    }

}
